import Taro, { Component } from '@tarojs/taro'
import { View, Text ,Radio, RadioGroup, Label, Button, WebView} from '@tarojs/components'
import './blank.css'
import { AtButton, AtToast } from 'taro-ui'
import { fail } from 'assert';
import { STATUS_CODES } from 'http';
import app from '../../main';

export default class Start extends Component {

  config = {
    navigationBarTitleText: '爱眼医生'
  }

  constructor(){
    super(...arguments);
  }

  onload() {
    console.log('web页面加载完成');
    // setTimeout(() => {
    //   console.log(22);
    //   app.decidePage(app.current);
    // }, 500)
    app.redirectTo('../eyeDoctor/eyeDoctor');
  }

  componentWillMount () {
    
  }

  componentDidMount () {}

  componentWillUnmount () { }

  componentDidShow () { }

  componentDidHide () { }
   
  render () {
    return (
      <WebView onLoad={this.onload.bind(this)} src={app.apiUri+'/web/weixin/getPatientOpenid?id='+app.current.id}  />
    )
  }
}

